home *** CD-ROM | disk | FTP | other *** search
- this.onEnterFrame = function()
- {
- if(hit.hitTest(_root._xmouse,_root._ymouse,true))
- {
- multiplier = -1;
- }
- else
- {
- multiplier = 1;
- }
- if(png._x < -600)
- {
- png._x = -600;
- }
- png._x += 10 * (600 - png._x) / 100 * multiplier;
- if(png._x > 0)
- {
- png._x = 0;
- }
- };
- count = 1;
-